import json

from config import BASE_PATH


def read_json(file_name):
    with open(file_name,"r",encoding="utf8") as f:
        json_data = json.load(f)
        login_list = []
        for i in json_data:
            login_list.append(tuple(i.values()))
        return login_list

if __name__ == '__main__':
    file_name = BASE_PATH + "/data/ihrm_login_data.json"
    ret = read_json(file_name)
    print(ret)

